#!/usr/bin/env bash

curl http://10.22.145.137:5000/translator/models

curl http://10.22.145.137:5000/translator/health

curl -i -XPOST http://10.22.145.137:5000/translator/translate -H "Content-Type: application/json" -d '[{"src": "I am a baby .", "id": 1}]'

curl http://10.22.145.137:5000/translator/to_cpu/1

curl http://10.22.145.137:5000/translator/to_gpu/1